'use client'

import {Input} from "antd";
import React from "react";

function InputTpl({onChange}: {onChange: any}) {

  const inputChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
    onChange(e.target.value)
  }

  return (
    <Input onChange={inputChange}/>
  )
}

export default InputTpl
